﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using Timer = System.Threading.Timer;

namespace AccManagerKw.Startup
{
    public partial class FrmSplash : Form
    {
        private int _sleepTime;
        public FrmSplash()
        {
            InitializeComponent();
        }

        private void FrmSplash_Shown(object sender, EventArgs e)
        {
            _sleepTime = 20;
            timer1.Start();
           }

        private void LoadModules()
        {

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            while (_sleepTime > 0)
            {
                _sleepTime--;
                return;
            }
            timer1.Stop();
            FrmMain oFrmMain = new FrmMain();
            oFrmMain.Show();
            Hide();
        }
    }
}
